import QtQuick 2.0
import QtQuick.Window 2.1

Window {
    id: splash
    color: "transparent"
    title: qsTr("Splash Window")
    modality: Qt.ApplicationModal
    flags: Qt.SplashScreen
    property int timeoutInterval: 2000

    signal timeout

    width: 200
    height: 400
    x: (Screen.width - width) / 2
    y: (Screen.height - height) / 2

    Rectangle
    {
        anchors.fill: parent
        color: "blue"
    }

    Timer {
        interval: timeoutInterval;
        running: true;
        repeat: false;

        onTriggered: {
            visible = false;
            splash.timeout();
        }
    }

    Component.onCompleted: visible = true
}
